package com.sunday.common.mq.kafka.study.spring.e15_Error_Handling_Deserializer;

import org.springframework.kafka.support.serializer.FailedDeserializationInfo;

import java.util.function.Function;

public class FailedFooProvider implements Function<FailedDeserializationInfo, BadFoo> {

    @Override
    public BadFoo apply(FailedDeserializationInfo info) {
        return new BadFoo(info);
    }

}
